package com.bms.cfcmms.service;

import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;

/**
 * Created by carl on 2016/4/20.
 */
@Service
public class LoginService {

    public static final String LOGINTIMES = "logintimes";



    public int getLoginTimes(HttpSession session) {
        if (session.getAttribute(LOGINTIMES) != null) {
            return (Integer) session.getAttribute(LOGINTIMES);
        } else {
            return 0;
        }
    }
}
